

import React, { useEffect, useRef } from 'react';
import LoginDialog from './LoginDialog';

import './Login.css'


function Login (){
  const loginRef = useRef(null)

  useEffect(()=>{
    localStorage.removeItem('token')
    loginRef.current.setShowDialog(true)
  },[])

  return (
  <div className='bg-fixed'>
    <LoginDialog ref={loginRef}/>
  </div>
  )
}

export default Login